﻿<div id="FoundProductTable" style="margin-top: 5px;">

    @{string productId = ViewBag.FoundProduct.ProductId.ToString();}
    @Html.Hidden("ProductId", productId)

<table id="FoundProduct" class="productsTable" cellspacing="0px">
<tr>        
    <td>
        @if (!string.IsNullOrEmpty(ViewBag.FoundProduct.Photo))
        {
            <img src="@Url.Content(ViewBag.FoundProduct.Photo)" alt="@ViewBag.FoundProduct.Name" class="small-image" />
        }
    </td>
    <td>
        @if (!string.IsNullOrEmpty(ViewBag.FoundProduct.Name))
        {
            string name = ViewBag.FoundProduct.Name;
            @Html.ActionLink(name, "Details", "Products", new { id = ViewBag.FoundProduct.ProductId }, null)
        }
    </td>
    <td>
		@ViewBag.FoundProduct.Reference
    </td>
    <td>
		@ViewBag.FoundProduct.Brands.Name
    </td>
    <td>
		@ViewBag.FoundProduct.Caterories.Name
    </td>
    <td>
        <span class="table-price">@String.Format("{0:0.00}", ViewBag.FoundProduct.Price) грн.</span>
    </td>
</tr>    
</table>

</div>